package com.ecommerce.common.enums;

public enum ApiResultCodeEnum {
    SUCCESS(200, "success"),
    FAIL(500, "fail"),
    BADREQUEST(400, "bad request"),
    UNAUTHORIZED(401, "unauthorized"),
    FORBIDDEN(403, "forbidden"),
    NOTFOUND(404, "not found");

    private int code;
    private String msg;

    ApiResultCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
